package hzjbbis.framework.workflow.persistence;

import java.util.List;

public interface QueryManager {
    public Object loadById(Class entity, long id);

    public Object loadByName(Class namedEntity, String name);

    public Object loadByNamedQuery(String query, Object obj);

    public List findAll(Class entity);

    public List findByNamedQuery(String query);

    public List findByNamedQuery(String query, Object parameter);

    public List findByNamedQuery(String query, Object[] parameters);

    public List find(String query);
}
